using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TaskBase
{
    public int gridX;
    public int gridY;
    private bool _isFinish;

    public bool IsFinish()
    {
        return _isFinish;
    }

    public bool IsCanFinish()
    {
        return OnGetIsFinsh();
    }

    protected virtual bool OnGetIsFinsh()
    {
        throw new System.Exception("OnGetIsFinsh not impelment");
    }

    public void ExeFinish()
    {
        _isFinish = true;
        OnFinsh();
    }

    protected virtual void OnFinsh()
    {
        throw new System.Exception("OnFinsh not impelment");
    }
}
